package com.ylsk.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ylsk.system.domain.BusinessFile;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 业务附件
 * @author jwb
 * @date 2023-08-04
 */
@Mapper
public interface BusinessFileMapper extends BaseMapper<BusinessFile>
{
    /**
     * 保存
     * @param businessFile
     * @return
     */
    int  add(BusinessFile businessFile);

    /**
     * 删除
     * @param businessFileId
     */
    int deleteById(Long businessFileId);

    /**
     * 批量修改附件信息
     * @param businessFileList 附件列表
     * @return 结果
     */
    public int batchUpdateFile(List<BusinessFile> businessFileList);


    /**
     * 批量新增 业务附件信息
     * @param businessFileList
     * @return
     */
    public int batchInsertBusinessFile(List<BusinessFile> businessFileList);

}

